package neo4j.learn.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import neo4j.learn.Repository.dao.domain.T_User;
import neo4j.learn.Service.UserService;

@Controller
@RequestMapping("/")
public class UserController {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("/getuser")
	public String toGetUser(HttpServletRequest request){
		List<T_User> list = userService.getAllUser();
		for(T_User u:list){
			System.out.println(u.getName());
		}
		return "abc";
	}

}
